package cn.yi.mongodb.entry;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * @author: yiz
 * @date: 2018/7/31 16:43
 **/
@Data
public class User implements Serializable {
    public User() {
    }

    public User(Long id,String nickName, Integer age, Integer sex, String country, String province, String city, String headImg, String mark) {
        this.id=id;
        this.nickName = nickName;
        this.age = age;
        this.sex = sex;
        this.country = country;
        this.province = province;
        this.city = city;
        this.headImg = headImg;
        this.mark = mark;
    }

    /**
     * 主键
     */
    private Long id;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 国家
     */
    private String country;
    /**
     * 省份
     */
    private String province;
    /**
     * 城市
     */
    private String city;
    /**
     * 头像
     */
    private String headImg;
    /**
     * 备注
     */
    private String mark;
}
